﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BallData
{
    // 参照http://caipiao.gooooal.com/jcspf_gg.html  里面js代码
    class IssueInfo
    {
        public String lotNumber;
        public String status;
        public Int64 startTime;
        public Int64 stopTimeT;
        public Int64 stopTime;
        public Int64 stopTimeD1;
        public Int64 stopTimeD2;
        public Int64 stopTimeH1;
        public Int64 stopTimeH2;
        public Int64 endTime;
        
        public IssueInfo(String infoStr)
        {
            String[] infoArr = infoStr.Split(OddsUntil.SplitColumn);

            this.lotNumber = infoArr[0];
            this.status = infoArr[1];
            this.startTime = Convert.ToInt64(infoArr[2]) * 1000;
            this.stopTimeT = Convert.ToInt64(infoArr[3]) * 1000;
            this.stopTime = this.stopTimeT;

            this.stopTimeD1 = Convert.ToInt64(infoArr[4]) * 1000;
            this.stopTimeD2 = Convert.ToInt64(infoArr[5]) * 1000;
            this.stopTimeH1 = Convert.ToInt64(infoArr[6]) * 1000;
            this.stopTimeH2 = Convert.ToInt64(infoArr[7]) * 1000;

            if (this.stopTimeD1 !=0 )
                this.stopTime = this.stopTimeD1;
            else if (this.stopTimeD2 !=0 )
                this.stopTime = this.stopTimeD2;

            this.endTime = this.stopTime;

            //this.matchList = new _fc.List();
            //this.leagueList = new _fc.List();

            //this.validNum = 0;
            //this.startNum = 0;
            //this.firstNo = 1;

        }

    }
}
